Skip to main content

Add Credential

AutomatR.DefaultActivities.WindowsCredentials.AddCredential

The "Add Credential" activity in AutomatR facilitates the storage of a specified credential with a custom persistence type in the Windows Credential Manager. This activity is useful for securely storing and managing credentials that can be later used for authentication with target systems or services.

Properties

NameDescription
Input
PasswordRepresents the password to be used in conjunction with the provided credentials. This is the password associated with the provided username for authentication. String variables containing the password.
Target NameRepresents the network address to be used in conjunction with the provided credentials. This should be the target system or service for which the credentials are being stored. String variables containing the target name.
User NameSpecifies the username that will be associated with the stored credentials. This is the username used to authenticate with the target system or service. String variables containing the username.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Add Credential" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the amount of time is 5 seconds, enter 5.

How to use:

  1. Drag and drop the "Add Credential" activity onto the workflow.
  2. Specify the target name, username, and password in the respective properties.
  3. Optionally, set the delay for the execution.
  4. Execute the workflow to store the specified credentials in the Windows Credential Manager.

Example:

Consider an example where the "Add Credential" activity is used to store credentials for authenticating with a network address:

Add Credential:
Display Name: "Store Network Credentials"
Target Name: "\\server\share"
User Name: "user123"
Password: "P@ssw0rd"

In this example, the activity stores the credentials for the network address "\server\share" with the username "user123" and password "P@ssw0rd" in the Windows Credential Manager.

Note: Ensure that the target name, username, and password are specified before executing this activity.